#include "pch.h"

#define TEST_FILE_NAME "test sample.txt"

int main() {

	// Global Singleton Instance
	CLexicalAnalyzer LexicalAnalyzerInstance;

	// test codes
	CLexemeToken token;

	if ( GLexicalAnalyzer->OpenFile( TEST_FILE_NAME ) == false ) return 0;
	while ( GLexicalAnalyzer->GetNextToken( &token ) == true ) {
		
		switch ( token.GetType() ) {
		case CLexemeToken::TK_ConstInt:
			wprintf( L"ConstInt type : %s\n", token.GetLexeme() );
			break;

		default:
			;
		}
	}

	return 1;
}